This page last changed on Aug 02, 2006 by bowens.

WorldWind is an amazing 3d viewer supported by NASA. It is an open source project, and it uses all standard WMS calls

. This means that if you set up GeoServer, you should be able to directly view your GeoServer layers in WorldWind. We've not yet had time to test it fully, so please add any needed information here if you do so.

To add some WMS layers to World Wind, follow these easy steps:

Step 1: Create the Layers Document

Open up your favorite text editor and create a new file called geoserver.xml. Save this file to (worldwind install dir)/Config/Earth

Step 2: Fill out the File

Now we have to fill the geoserver.xml with information that will connect World Wind to our server. Simply copy and paste the following code into the file and save it.

<LayerSet Name="Geoserver" ShowOnlyOneLayer="false" ShowAtStartup="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\WorldWind\bin\Debug\Configuration\EarthLayers\LayerSet.xsd">

	<QuadTileSet ShowAtStartup="false">
		<Name>States</Name>
		<DistanceAboveSurface>120</DistanceAboveSurface>
		<BoundingBox>
			<North>
				<Value>49.371735</Value>
			</North>
			<South>
				<Value>24.955967</Value>
			</South>
			<West>
				<Value>-124.731422</Value>
			</West>
			<East>
				<Value>-66.969849</Value>
			</East>
		</BoundingBox>
		<TerrainMapped>true</TerrainMapped>
		<ImageAccessor>
			<LevelZeroTileSizeDegrees>36</LevelZeroTileSizeDegrees>
			<NumberLevels>10</NumberLevels>
			<TextureSizePixels>512</TextureSizePixels>
			<ImageFileExtension>png</ImageFileExtension>
		<WMSAccessor>
		  <ServerGetMapUrl>http://localhost:8080/geoserver/wms</ServerGetMapUrl>
		  <ServiceName>WMS</ServiceName>
		  <Version>1.1.1</Version>
		  <ImageFormat>image/png</ImageFormat>
		  <WMSLayerName>states&amp;BGColor=0x000000&amp;TRANSPARENT=true</WMSLayerName>
		  <UseTransparency>true</UseTransparency>
		  <TransparentMinValue>0</TransparentMinValue>
		  <TransparentMaxValue>16</TransparentMaxValue>		  
		  <ServerLogoFilePath>add-ons\Earth\NHDPlus\NHDPlus.png</ServerLogoFilePath>
		 </WMSAccessor>
		</ImageAccessor>
	</QuadTileSet>
<LayerSet>

Step 3: Open World Wind

Now that the file is created and in the correct directory, open up World Wind. If you already have it open, close it and start it up again. Once World Wind has loaded open the Layer Manager. It is located on the top left hand corner of the screen.

Then locate Geoserver in the list and check the box next to it to activate it. Then expand the Geoserver box and select the layer below to turn it on. You should now have live streaming of your data.


Document generated by Confluence on Jan 16, 2008 23:28